package com.witdata.common.mapper;

import com.witdata.common.domain.dto.VersionDto;
import com.witdata.mysql.domain.entity.TVersion;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface VersionMapper {

    VersionMapper INSTANCE = Mappers.getMapper(VersionMapper.class);

    VersionDto toVersionDto(TVersion tVersion);

    List<VersionDto> toVersionDtoList(List<TVersion> tVersionList);

}
